package controllers

import (
	"gdshop-back-end-go/client-api/app/request/ClassifyReq"
	"gdshop-back-end-go/client-api/app/service/ClassifyService"
	"gdshop-back-end-go/common/response"
	"github.com/gogf/gf/net/ghttp"
)

type ClassifyController struct {
	*BaseController
}

// 分类列表
func (c *ClassifyController) List(r *ghttp.Request) *response.JsonResponse {
	var parames *ClassifyReq.List
	if err := r.Parse(&parames); err != nil {
		return response.FailByRequestMessage(r, err.Error())
	}
	return ClassifyService.List(r.GetCtx(), parames)
}
